package com.internetCafes.spms.web.tenant.dao;

import com.internetCafes.spms.web.tenant.model.TenantRoleMenuInfo;
import com.internetCafes.spms.core.generic.GenericDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 租户角色功能信息表
 * 
 * @author Sunny
 * @email rekeeper2011@hotmail.com
 * @date 2019-10-31 18:09:54
 */
@Mapper
public interface TenantRoleMenuInfoMapper extends GenericDao<TenantRoleMenuInfo, Long>{

    /**
     * 插入
     */
    int insert(TenantRoleMenuInfo tenantRoleMenuInfo);

    /**
     * 批量插入
     */
    int insertBatch(@Param("tenantRoleMenuInfoList") List<TenantRoleMenuInfo> tenantRoleMenuInfoList);

    /**
     * 选择插入
     */
    int insertSelective(TenantRoleMenuInfo tenantRoleMenuInfo);

    /**
     * 按主键ID查询
     */
    TenantRoleMenuInfo selectByPrimaryKey(Long id);

    /**
     * 按主键ID选择更新
     */
    int updateByPrimaryKeySelective(TenantRoleMenuInfo tenantRoleMenuInfo);

    /**
     * 按主键ID更新
     */
    int updateByPrimaryKey(TenantRoleMenuInfo tenantRoleMenuInfo);

    /**
     * 按参数查询
     */
    List<TenantRoleMenuInfo> selectByParams(Map<String, Object> params);

    /**
     * 按参数查询数量
     */
    long countByParams(Map<String, Object> params);

    /**
     * 按主键ID删除
     */
    int deleteByPrimaryKey(Long id);

    /**
     * 按主键ID批量删除
     */
    int deleteBatchByPrimaryKey(List<Long> ids);
	
}
